Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

CMake split into lib and project files #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ulrikus
Copy link

@ulrikus ulrikus commented Jun 8, 2023

What

Based on the changes in the branch msvetkin/feature/cmake-split-project-and-lib, but with a bit more extracted to the top level CMakeLists file. See #33 to the base repo. Also, a simple variable declaration for better readability in the httprequest.cpp file.

msvetkin and others added 5 commits March 16, 2022 10:23
That will allow to use QtWebApp as subdirectory with provided Qt version
…roject-and-lib

cmake: Split QtWebApp/CMakeLists into lib cmake and project cmake files
httprequest.cpp:374:44: error: no matching function for call
    to ‘QByteArray::startsWith(QStringBuilder<char [3], QByteArray>)’
374 |                         if (line.startsWith("--" + boundary)) {

httprequest.cpp:406:50: error: no matching function for call
    to ‘QByteArray::contains(QStringBuilder<QByteArray, char [3]>)’
406 |                                 if (line.contains(boundary + "--")) {

Also we don't change the boundary during the loop so we don't need to
create helper strings every iteration.
This flags effects entire project and they should not effect whoever
uses this project as subdirectory.
@msrd0
Copy link
Owner

msrd0 commented Jun 8, 2023

Hi, thanks for your contribution. Unfortunately I haven't been using this project neither C++ for a very long time, so I'm not interested in maintaining this project anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants